<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AlterTableAttendanceDailyGatherAddAmap extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('attendance_daily_gather', function (Blueprint $table) {
            $table->json('aMapTrace')->nullable(true)->after('checkStatus')->comment('高德轨迹');
            $table->unsignedBigInteger('aMapTRid')->default(0)->after('aMapTrace')->comment('高德轨迹ID');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('attendance_daily_gather', function (Blueprint $table) {
            $table->dropColumn('aMapTrace');
            $table->dropColumn('aMapTRid');
        });
    }
}
